package net.googlecode.vasetskiy.task3;

import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: Vasetskiy Vlad
 * Date: 29.03.11
 * Time: 13:53
 * To change this template use File | Settings | File Templates.
 */

 public class Employee extends PersonInform {
    private int experience;

    /**
     * Basic Constructor, creates an Employee.
     *
     * @param fName Employee's firstname.
     * @param lName  Employee's lastname.
     */
    public Employee( String fName, String lName) {
        super(fName, lName);
    }
      /**
     * Gets employee's experience.
     *
     * @return peson's experience.
     */
    public int getExperience() {
        return this.experience;
    }

    /**
     * Sets employee's experience.
     *
     * @param exp person's experience.
     */
    public void setExperience( int exp) {
      experience = exp;
    }
        /**
     * Sets employee has rate per hour or not.
     *
     * @param pHour true if employee has rate per hour
     */
    public void setPerHour(boolean pHour) {
        perHour = pHour;
    }


    /**
     * Sets employee has bonus or not.
     *
     * @param bnus true if employee has bonus
     */
    public void setBonus(boolean bnus) {
        bonus = bnus;
    }

}

